package com.example.myworkc;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity2 extends AppCompatActivity {
    private TextView textView6,textView_top2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        textView6=findViewById(R.id.textView6);
        textView_top2=findViewById(R.id.textView_top2);
        Intent intent = getIntent();
        String name = intent.getStringExtra("name");
        String words = intent.getStringExtra("words");
        textView_top2.setText(name);
        textView6.setText(words);
    }
}